<?php
	class Title extends Element{
		private $text = "";
		
		public function __construct($text, $class){
			$this->text = $text;
			$this->class = $class;
		}
		
		public function getCode(){
			$this->code = "<div class='".$this->class."'>".$this->text."</div>";
			return $this->code;
		}
		
		public function setClass($class){
			$this->class = $class;
		}
		
		public function setText($text){
			$this->text = $text;
		}
		
		public function getClass(){
			return $this->class;
		}
		
		public function getText(){
			return $this->text;
		}
	}
?>